<template>
  <view class="content">
    <Head title="联系客服" @back="back" icon="icon-arrow-left-bold" />
    <div class="list">
      <button type="default" @click="Tel">拨打客服电话:4007887888</button>
    </div>
  </view>
</template>

<script>
import Head from "@/components/head/index";

export default {
  components: { Head },
  data() {
    return {
      list: ["石景山"],
      focus: false
    };
  },
  onLoad() {},
  methods: {
    back() {
      wx.navigateBack({
        delta: 1
      });
    },
    Tel: function() {
      wx.makePhoneCall({
        phoneNumber: "4007887888", //这个是我的手机号，模拟测试
        success: function() {
          console.log("拨打电话成功！");
        },
        fail: function() {
          console.log("拨打电话失败！");
        }
      });
    }
  }
};
</script>

<style scoped lang="scss">
.list {
  background-color: #eee;
  height: 500rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
